package com.jason.demo.servicehi.conc;

/**
 * @author zhouxinghuai
 * @description description
 * @date 2018-08-23
 */
public class ProcessorDemo {

    public static void main(String[] args) {
        SaveProcessor saveProcessor = new SaveProcessor();
        PrintProcessor printProcessor = new PrintProcessor(saveProcessor);

        printProcessor.start();
        saveProcessor.start();


        Request request = new Request();
        request.setName("jason");
        printProcessor.process(request);


    }

}
